﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluorineFx;
namespace SHNOPData.SHNOPModel
{
    [RemotingService]
    /// <summary>
    /// 操作日志信息
    /// </summary>
    public class LogInfo
    {
        public int logID { get; set; }
        /// <summary>
        /// 规划ID
        /// </summary>
        public Guid ntplanID
        {
            get;
            set;
        }
        /// <summary>
        /// 操作人
        /// </summary>
        public string operate { get;set;}
      /// <summary>
      /// 时间
      /// </summary>
        public DateTime logTime { get; set; }
        /// <summary>
        /// 类别 为 网络规划、站点、端口、频率、入网
        /// </summary>
        public OperateType type { get; set; }
        /// <summary>
        /// 操作 为 导入、新增、修改、删除
        /// </summary>
        public LogAction action { get; set; }
        /// <summary>
        /// 操作对象ID
        /// </summary>
        public Guid objID { get; set; }
        /// <summary>
        /// 备注 根据具体的操作进行拼凑得到数据。
        /// </summary>
        public string remark { get; set; }

        public LogInfo(string operate,Guid ntplanID,OperateType type, Guid objID, LogAction action, string remark)
        {
            this.ntplanID = ntplanID;
            this.remark = remark;
            this.type = type;
            this.objID = objID;
            this.operate = operate;
            this.logTime = DateTime.Now;
            this.action = action;
        }

    }

    public enum OperateType
    {
        网络规划,
        站点,
        端口,
        频率,
        入网
    }
    public enum LogAction
    {
       导入,新增,修改,删除

    }
}
